int* twoSum(int* nums, int numsSize, int target, int* returnSize)
{
  for (int i = 0; i < numsSize; ++i) 
    {
      for (int j = i + 1; j < numsSize; ++j) 
      {
        if (nums[i] + nums[j] == target) 
        {
           int* a = malloc(sizeof(int) * 2);
           a[0] = i;
           a[1] = j;
           *returnSize = 2;
        return a;
        }
      }
    }
*returnSize = 0;
return 0;
}
